import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'

import Login from '@/page/login'
import Reg from '@/page/reg'
import Home from '@/page/Home'
import add_post from '@/page/add_post'


Vue.use(Router)

export default new Router({
	routes: [{
		path: '/',
		name: 'login',
		component: Login
	}, {
		path: '/reg',
		name: 'reg',
		component: Reg
	}, {
		path: '/home',
		name: 'home',
		component: Home
	},{
		path: '/add_post',
		name: 'add_post',
		component: add_post
	}, ]
})